@import "mixins/bem";
@import "var";

@include b(text-icon) {

  cursor: pointer;
  @include e(text) {
    font-size: 16px;
    vertical-align: middle;
  }

  @include e(icon) {

    font-size: 24px;
    vertical-align: middle;
  }
}

@include b(content) {

  @include e(blank-wrap) {

    width: 1200px;
    margin: 0 auto;
    background-color: white;

    @include m(margin-top) {
      margin-top: 20px;
      padding: 20px 52px;
    }
  }

  @include e(opt-wrap) {
    padding: 0px 0 20px 0;
    overflow: hidden;
  }

  @include e(opt-item) {

    vertical-align: middle;
    margin: 0  10px 0 0  ;
    @include m(right) {
      float: right;
      top: -1px;

    }
  }
  @include e(card){
    width: 1200px;
    min-height: 600px;
    margin: 10px  auto 0 auto;
    background-color: white;
    padding: 10px;

  }
  @include e(search-condition){

    padding: 20px 0;
    min-height: 70px;

    @include e(right-btn){

      float: right;
      margin-right: 40px;
    }
    @include m(middle){
      text-align: center;
    }
  }

  @include e(center){

    width: 1200px;
    margin: 0 auto;
  }
}


@include b(pc-content){

  background-color: white;
  margin-top: 10px;
  min-height: 600px;

  @include e(title){

    border-bottom: 4px solid #E2EAEC;
    color: $--color-primary;
    font-size: 24px;
    line-height: 20px;
    padding: 20px 0;

  }
  @include e(sub-title){

    display: inline-block;
    font-size: 14px;
    color: #333333;
  }
}

@include b(image-text) {

  text-align: center;
  display: inline-block;
  border-radius: 10px;
  border: 1px solid #ebebeb;
  padding: 44px 80px;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
  @include e(in-use) {
    position: absolute;
    top: 14px;
    left: 35px;
    font-size: 14px;
    color: #999999;
    &:before {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 3px;
      position: absolute;
      background-color: #FF6A6A;
      top: 6px;
      left: -12px;
    }
  }
  @include e(image) {
    display: block;
    opacity: 1;
    transition: all 1s ease 0s;
  }
  @include e(active-image) {
    position: absolute;
    opacity: 0;
    top: 44px;
    transition: all 1s ease 0s;
  }
  @include e(bg) {
    position: absolute;
    top: 88px;
    left: 80px;
    transition: all 1s ease 0s;
    width: 153px;
    opacity: 0;
  }
  @include e(text) {
    color: #6A6E82;
    font-size: 24px;
    margin-top: 18px;
  }
  @include e(text-sub) {
    color: #B2B4B4;
    font-size: 16px;
    height: 24px;
  }

  @include m(small) {
    padding: 50px 28px 10px 28px;
    @include e(bg) {
      top: 40px;
      left: 18px;
    }
    @include e(active-image) {
      top: 50px;
      left: 28px;
    }
  }

  @include when(active) {
    @include e(active-image) {
      display: block;
      opacity: 1;

    }
    @include e(bg) {
      transition: all 1s ease 0s;
      opacity: 1;
    }
    @include e(image) {
      opacity: 0;
    }
  }
  &:hover {
    border: 1px solid transparent;
    box-shadow: 0 0 30px rgba(207, 218, 232, .5);
    transition: all 0.5s ease 0s;
  }
}

@include b(button) {
  //border-radius:1rem;
  //border-radius: 0;
  //padding: 12px 30px;
  //box-shadow: 0 8px 16px mix($--color-white, $--color-primary, $--link-shadowbox-percent);
  //width: 170px;
  //height: 46px;
  //font-size: 16px;
  @include m(warning) {
    box-shadow: 0 8px 16px mix($--color-white, $--color-warning, $--link-shadowbox-percent);
    background-color: #FD964C;
  }
  @include m(mini) {
    padding: 12px 10px;
    font-size: 14px;
    width: 120px;
    height: 40px;
    box-shadow: none;
  }
  @include when(round){
    //border-radius: 23px;
  }
  @include e(login){
    background: rgba(11, 156, 110,1);
    width:5.56rem;
    height:1.81rem;
  }
}

@include b(search-input) {

  position: relative;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  @include e(input) {

    border-radius: 0px;
    border: 1px solid #DCDFE6;
    font-size: 14px;
    padding: 0 80px 0 20px;
    height: 40px;
    line-height: 40px;
    color: #405878;
    outline: none;
    &:focus {
      outline: none;
      color: #405878;
    }

    /** placeholder 样式 **/
    &::-webkit-input-placeholder { /* WebKit, Blink, Edge */
      color: $--input-placeholder-color;
      text-align: left;
    }

    &:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
      color:$--input-placeholder-color;
      text-align: left;
    }

    &::-moz-placeholder { /* Mozilla Firefox 19+ */
      color: $--input-placeholder-color;
      text-align: left;
    }

    &:-ms-input-placeholder { /* Internet Explorer 10-11 */
      color: $--input-placeholder-color;
      text-align: left;
    }
    @include m(prefix) {
      padding-left: 40px;
    }

  }

  @include e(icon) {
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    right: 0;
    top: 1px;
    font-size: 24px;
    color: #DCDFE6;
    text-align: center;
    @include m(prefix) {
      right: unset;
      left: 0;
    }
    @include m(bg) {
      background-color: $--color-primary;
      color: white;
    }
  }
  @include e(btn) {

    position: absolute;
    line-height: 40px;
    display: inline-block;
    right: 0;
    top: 0px;
    font-size: 16px;
    color: white;
    background-color: $--color-primary;
    text-align: center;
    padding: 0 30px;
    cursor: pointer;
    &:hover {
      background-color: mix($--color-white, $--color-primary, $--link-active-percent);;
    }
    &:focus {

      background-color: mix($--color-white, $--color-primary, $--link-focus-percent);;
    }
  }

}

@include b(scroll-tool) {

  position: relative;
  top: 50%;
  height: calc(100% - 70px);
  background-color: black;
  @include e(wrap) {

    width: 12px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -46.5px;
    height: 93px;
    border-top-right-radius: 35px;
    border-bottom-right-radius: 35px;
    background: #fff;
    z-index: 1;
    box-shadow: 3px 0px 3px rgba(0, 0, 0, .1);

  }
  @include e(icon) {
    color: #D8D8DE;
    font-size: 28px;
    position: absolute;
    left: -8px;
    top: 26px;
  }
  @include e(bg) {
    width: 6px;
    position: absolute;
    top: 50%;
    border-radius: 3px;
    right: 6px;
    margin-top: -100px;
    background-color: #DEDEE4;
    height: 200px;
    display: inline-block;

  }
}

@include b(tab-selector) {
  display: inline-block;
  @include e(item) {

    display: inline-block;
    height: 40px;
    line-height: 40px;
    margin: 0px 20px;
    color: #6B6E82;
    cursor: pointer;

    @include when(selected) {

      color: $--color-primary;
      border-bottom: 3px solid $--color-primary;
    }
  }
}

@include b(page){
  @include e(content){


  }

  @include e(bottom-del){
    margin-top: 10px;
    a{
      float: right;
      line-height: 30px;
      margin-right: 70px;
      cursor: pointer
    }
  }
  @include e(pagination){

    text-align: center;
    margin-top: 60px;
  }

}

@include b(icon-selector){

  display: inline-block;
  height: 40px;
  width: 40px;
  font-size: 36px;
  text-align: center;
  line-height: 40px;
  border-radius:4px ;
  border: 1px solid #DCDFE6;
  color: $--input-placeholder-color;
  &:active{

    border: 1px solid $--color-primary;
    color: $--color-primary;
  }
  @include when(active){

    border: 1px solid $--color-primary;
    color: $--color-primary;
  }
}

@include b(live-video){

  border: 4px solid #E2EBF8;
  display: inline-block;
  margin: 5px;
  @include e(head){

    color: #3197FF;
    text-align: left;
    padding: 10px;
  }
  @include e(del){

    color:#999999 ;
    vertical-align: middle;
    font-size: 28px;
    float: right;
  }
  @include e(page){
    display: inline-block;
    color: #8B8B8B;
    vertical-align: middle;
    height: 24px;
    line-height: 24px;
  }
  @include e(page-icon){
    background-color: #f5f5f5;
    font-size: 28px;
    vertical-align: middle;
  }
  @include e(replay){
    float: right;
    color: $--color-primary;
    vertical-align: middle;
  }
  @include e(context){

    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;

    /* 设置滚动条的样式 */
    &::-webkit-scrollbar {
      width:4px;
      color: #DEDEE4;
    }
    /* 滚动槽 */
    &::-webkit-scrollbar-track {
      border-radius:10px;
    }
    /* 滚动条滑块 */
    &::-webkit-scrollbar-thumb {
      border-radius:10px;
      background:#DEDEE4;
    }
    &::-webkit-scrollbar-thumb:window-inactive {
      background:#DEDEE4;
    }
  }
  @include e(foot){

    text-align: left;
    padding: 10px ;
  }
}

@include b(select-span){

  padding:  10px 20px;
  @include e(title){
    display: inline-block;
    color: #424E67;
    font-size: 16px;
    width: 50px;
    vertical-align: middle;
  }
  @include e(content){
    display: inline-block;
    color: #939FAA;
    width: calc(100% - 80px);
    vertical-align: middle;
    span{
      font-size: 14px;
      display: inline-block;
      padding: 5px 10px ;
      cursor: pointer;
      @include when(selected){
        background-color: $--color-primary;
        color: white;
        border-radius: 5px;
      }
    }
  }
}

/**  单个题目的样式 **/
@include b(question-item){
  margin-bottom: 30px;
  padding: 10px 0 0 0;
  border: 1px solid #e3e3e3;
  border-bottom: none;

  @include when(selected){
    background-color: #faf9ee;
    @include e(bottom){

      background-color: #faf9ee;
    }
  }
  @include e(main){

    min-height: 120px;
  }
  @include e(title){
    display: inline-block;
    height: 40px;
    color: inherit;
    text-align: center;
    vertical-align: top;
    margin-left: 15px;
  }
  @include e(content){
    display: inline-block;
    width: calc(100% - 80px);
    vertical-align: middle;
  }
  @include e(bottom){

    border-bottom: 1px solid #e3e3e3;
    border-top: 1px solid #e3e3e3;
    background-color: #eefaf5;
    margin-top: 10px;
    text-align: right;
    padding: 8px;
    color: $--color-primary;
  }
  @include e(btn){
    margin: 0 5px !important;
    cursor: pointer;
  }
  & table{
    th{
      width: 80px;
      border-right:1px solid #e3e3e3 ;
      vertical-align: middle;
    }
    th,td{
      border-bottom:1px solid #e3e3e3 ;
      padding: 10px;
    }
  }
}
